package com.cn.jinl.api;

import com.alibaba.fastjson.JSONObject;
import com.cn.jinl.domain.WxUser;
import com.cn.jinl.utils.QueryForm;

import java.util.List;
import java.util.Map;

public interface IWxUserService {

    List<WxUser> queryWxUserList(QueryForm queryForm)throws Exception;

    List<WxUser> queryWxUserSelectList()throws Exception;

    Map<String,String> queryWxUserMap()throws Exception;

    String updateWxUserInfo(WxUser wxUser)throws Exception;

    WxUser queryWxUserById(String id)throws Exception;

    String addWxUser(WxUser login)throws Exception;

    String delWxUser(QueryForm queryForm)throws Exception;

    String updateWxUser(WxUser login)throws Exception;

    String updateWxUserStatus(WxUser login)throws Exception;

    int countWxUser(String loginAccount, String userId)throws Exception;

    WxUser doLogin(WxUser login)throws Exception;

    WxUser getWxUserByOpenId(String openId)throws Exception;


    String sendCode(String phone)throws Exception;

    JSONObject updateOrGetPhoneNum(String code,String openId)throws Exception;
    JSONObject getWxUserDetail(String userId)throws Exception;

    String getWxOpenId(String code)throws Exception;

    String  updateWxUserPassword(WxUser wxUser)throws Exception;

    WxUser updateWxUserImgById(WxUser wxUser)throws Exception;

}
